package entity

import (
	"shqsoft.cn/pas3ui/base"
)

type UserProxy struct {
	UserId      int    `gorm:"primary_key;column:UserId"`
	ProxyId     int    `gorm:"primary_key;column:ProxyId"`
	PopedomId   int    `gorm:"column:PopedomId"`
	PopedomType string `gorm:"column:PopedomType"`
}

//TableName Role 角色表名
func (UserProxy) TableName() string {
	return "t_UserProxy"
}

func UserProxyEF() base.EntityFunc {
	return func() interface{} {
		entity := UserProxy{}
		return &entity
	}
}
func UserProxyESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []UserProxy
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("UserProxy", base.NewDefaultDao(UserProxyEF(), UserProxyESF(), nil, "my"))
}
